import React from 'react';
import './index.less';
import {WeaAlertPage} from 'ecCom';

import { WeaLocaleProvider } from "ecCom";
const getLabel = WeaLocaleProvider.getLabel;

export default class WhitePage extends React.Component{
    // render() {
    //     const {height = 0, type = "default", text = "没有可显示的数据"} = this.props;
    //     const Type = {
    //         default: "icon-blog-blank",
    //         message: "icon-blog-NoData"
    //     }
    //     return (
    //         <div className="wea-white-page" style={{paddingTop: `${height / 2 - 50}px`}}>
    //             <span className={"wea-wp-item wea-wp-icon " + Type[type]}/>
    //             <span className="wea-wp-item wea-wp-data">{text}</span>
    //         </div>
    //     )
    // }
    render() {
        const {height = 0} = this.props;
        return <WeaAlertPage ecId={`${this && this.props && this.props.ecId || ''}_WeaAlertPage@z9uqik`} icon='icon-coms-blank' paddingTop={`${height / 2 - 50}px`}>
            <div>{getLabel(83553,"暂无数据")}</div>
        </WeaAlertPage>
    }
}